OUT:=server
SRCS=$(wildcard *.c)
OBJS=$(patsubst %.c,%.o, $(SRCS))
CC=gcc
$(OUT):$(OBJS)
	$(CC) $^ -o $@ -lpthread -I /usr/include/mysql/ -lmysqlclient -lcrypt
%.o:%.c
	$(CC) -c $^ -o $@ -g
.PHONY:clean rebuild
clean:
	$(RM) $(OBJS) OUT
rebuild:clean server